<template>
  <main-model-box :config="config" :form="form" ref="modelBox" />
</template>

<script>
import MainModelBox from "@/components/MainModelBox";
export default {
  components: {
    MainModelBox,
  },
  data() {
    return {
      config: {
        title: "个人资料",
        info: ["支付宝", "用户名", "邮箱", "地址"],
      },
      form: [
        { id: 0, val: this.$store.state.alipay },
        { id: 1, val: this.$store.state.username },
        { id: 2, val: this.$store.state.mail },
        { id: 3, val: this.$store.state.address },
      ],
    };
  },
  methods: {
    setVisible() {
      this.$refs.modelBox.visible = true;
    },
  },
};
</script>

<style>
</style>
